import { getBannerAPI } from "@/apis/home.js";
import { onMounted, ref } from "vue";
//封装abnner图业务逻辑代码
export const useBanner = () => {
    //轮播图
    let bannerList = ref([]);
    const getBanner = async () => {
        const distributionSite = "2";
        const res = await getBannerAPI(distributionSite);
        bannerList.value = res?.result;
    };
    onMounted(() => getBanner());
    return { bannerList }
}